package com.atguigu.blog.exception.common;

public enum BizCodeEnume {
    // 参数校验
    VAILD_EXCEPTION(10001,"参数格式校验失败"),
    // 未知异常
    UNKNOW_EXCEPTION(10002,"系统未知异常"),

    TOO_MANY_REQUEST(10003, "请求流量过大"),

    TIMEOUT(10004, "请求超时"),

    CONNECTTIMEOUT(10005, "连接超时");

    private Integer code;
    private String msg;

    BizCodeEnume(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}